package ru.spbu.math.seabattle.server.messages;

import java.io.Serializable;

import ru.spbu.math.seabattle.entity.FieldModel;
import ru.spbu.math.seabattle.entity.PlayerID;

public class SetFieldMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	private final PlayerID playerId;
	private final FieldModel field;
	
	public SetFieldMessage(FieldModel field, PlayerID playerId) {
		this.field = field;
		this.playerId = playerId;
	}

	public PlayerID getPlayerId() {
		return playerId;
	}

	public FieldModel getField() {
		return field;
	}
}
